﻿namespace OrderEntryManagement
{
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Navigation;
    using OrderEntryManagement.LoginUI;
    using Microsoft.Practices.Composite.Events;
    using OrderEntryManagement.Infrastructure;

    /// <summary>
    /// <see cref="UserControl"/> class providing the main UI for the application.
    /// </summary>
    public partial class Shell : UserControl
    {
        private readonly IEventAggregator eventAggregator;
        
        /// <summary>
        /// Creates a new <see cref="MainPage"/> instance.
        /// </summary>
        public Shell()
        {
            InitializeComponent();
            this.loginContainer.Child = new LoginStatus();
        }

        public Shell(IEventAggregator eventAggregator) : this()
        {
            this.eventAggregator = eventAggregator;
        }

    }
}